{extend name='common@layout/seller' /}
{block name="left"}{include file='goods/left'}{/block}
{block name="breadcrumb"}
<div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>商品<i class="icon-angle-right"></i>商品管理</div>
{/block}
{block name='content'}

{notpresent name='edit'}
{include file='goods/step'}
{else /}
<div class="tabmenu">
    <ul class="tab pngFix">
        <li class="active"><a  href="{:url('seller/goods/modify?commonid='.$edit)}">编辑商品</a></li>
        <li class="normal"><a  href="{:url('seller/goods/images?commonid='.$edit)}">编辑图片</a></li>
    </ul>
</div>
{/notpresent}
<div class="wrapper_search">
  <div class="wp_sort">
    <div id="dataLoading" class="wp_data_loading">
      <div class="data_loading">加载中...</div>
    </div>
    <div id="class_div" class="wp_sort_block">
      <div class="sort_list">
        <div class="wp_category_list">
          <div id="class_div_1" class="category_list">
            <ul>
                {foreach $store_class as $k=>$one}
                <li class="" nctype="selClass" data-param="{gcid:{$k},deep:1}"> 
                    <a class="" href="javascript:void(0)"><i class="icon-double-angle-right"></i>{$one.name}</a>
                </li>
                {/foreach}
            </ul>
          </div>
        </div>
      </div>
      <div class="sort_list">
        <div class="wp_category_list blank">
          <div id="class_div_2" class="category_list">
            <ul>
            </ul>
          </div>
        </div>
      </div>
      <div class="sort_list sort_list_last">
        <div class="wp_category_list blank">
          <div id="class_div_3" class="category_list">
            <ul>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="alert">
    <dl class="hover_tips_cont">
      <dt id="commodityspan"><span style="color:#F00;">请选择商品类别</span></dt>
      <dt id="commoditydt" style="display: none;" class="current_sort">您当前选择的商品类别是：</dt>
      <dd id="commoditydd"></dd>
    </dl>
  </div>
  <div class="wp_confirm">
      <div class="bottom tc">
          <label class="submit-border"><input disabled="disabled" onclick="go_to_url('{$url}');" nctype="buttonNextStep" value="下一步，填写商品信息" type="button" class="submit" style=" width: 200px;" /></label>
      </div>
  </div>
</div>
<input type="hidden" name="class_id" id="class_id" value="">
<script src="/old/data/resource/js/common_select.js?v1.2"></script> 
<script src="/old/data/resource/js/jquery.mousewheel.js?v1.2"></script> 
<script src="/old/shop/resource/js/store_goods_add.step1.js?v1.2"></script> 
<script>
SEARCHKEY = '请输入商品名称或分类属性名称';
var STORE_BIND_CLASS = {$store_class|json_encode};
function go_to_url(url)
{
    var cate_id = $('#class_id').val();
    location.href = url + '&cate_id=' + cate_id;
}
</script>
{/block}